package com.opensdk.auth;

public class AccessToken extends OAuthToken {

	private static final long serialVersionUID = -5568501982449829406L;
	
	private String accessString;
    
    public AccessToken(String str) {
        super(str);
        this.accessString = str;
    }

    public AccessToken(String token, String tokenSecret) {
        super(token, tokenSecret);
    }
	
	public static AccessToken string2AccessToken(String str){
		return new AccessToken(str);
	}
	
	public static String accessToken2String(AccessToken accessToken){
		if (null == accessToken)
			return null;
		
		return accessToken.accessString;
	}
	
	public String getAccessString() {
		return accessString;
	}
   
	public String get(String key){
		return super.getParameter(key);
	}
}